<template>
  <div class="warp">
    <h3>这是父组件</h3>
    <ChilderVm>
      <div slot-scope="data">
        {{data.itemData}}
        <h3>{{data.itemData1}}</h3>
        <h3>{{data.itemData2}}</h3>
      </div>
    </ChilderVm>
  </div>
</template>

<script>
  import ChilderVm from './ChilderVm';
  export default {
    data() {
      return {
        name: "ParentVm",

      }
    },
    components: {
      ChilderVm
    }
  }
</script>

<style scoped>
  .warp {
    width: 95%;
    margin: 5px auto;
    border: 1px red dashed;
    text-align: center;
  }
</style>
